﻿/**
 * ...
 * @author Alex Malygin
 */

package list;

import flash.text.TextFormat;
import gui.hug.HUGLinkButton;
import gui.hug.HUGSprite;
import flash.events.MouseEvent;



class AddItems extends HUGSprite
{
	private var addItems	:HUGLinkButton;
	private static inline var TEXT_FORMAT : TextFormat = new TextFormat("Verdana", 12, 0x7fc7ff);
	
	public function new(left : UInt = 0, top : UInt = 0, onClick: Void -> Void ) {
		super();
		setLocation(left, top);
		addItems = new HUGLinkButton("Добавить еще 10 статей", TEXT_FORMAT);
		addItems.setLocation(left - 368 , top);
		addItems.addEventListener(MouseEvent.CLICK, function(e) { onClick(); } );
		addChild(addItems);
	}
	
}